package org.example.strategy;

import org.example.strategy.improve.GoodBehavior;

/**
 * @author wangbin
 * @date 2024/4/20
 * @vesion 1.0
 */
public class Client {
    public static void main(String[] args) {
        WildDuck wildDuck = new WildDuck();
        wildDuck.fly();


        BeJingDuck beJingDuck = new BeJingDuck();
        beJingDuck.fly();

        beJingDuck.setFlyBehavior(new GoodBehavior());
        beJingDuck.fly();
    }
}
